﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using ChuanYe.CountyFireManagement.BLL;
using ChuanYe.CountyFireManagement.Model;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace ChuanYe.CountyFireManagement.Api.Controllers
{
    /// <summary>
    /// 勿调用
    /// </summary>
    [Route("api/[controller]/[action]")]
    [ApiController]
    class ResetController : ControllerBase
    {
        /// <summary>
        ///  勿调用
        /// </summary>
        /// <returns></returns>
        [HttpGet]
         ResultDtoBase Start()
        {
            ResultDtoBase result = new ResultDtoBase();
            try
            {
                Sys_ResetBLL.Instance.InitDatabseSystem();
            }
            catch (Exception ex)
            {
                result.Status = 500;
                result.Message = "/Reset/Start Server Error";
                LogHelper.Error(result.Message,ex);
            }
            return result;
        }
    }
}